import request from '@/utils/request'

// 查询平台相关文档列表
export function listCmsDocument(query) {
  return request({
    url: '/cms/cmsDocument/list',
    method: 'get',
    params: query
  })
}

// 查询平台相关文档详细
export function getCmsDocument(id) {
  return request({
    url: '/cms/cmsDocument/' + id,
    method: 'get'
  })
}

// 新增平台相关文档
export function addCmsDocument(data) {
  return request({
    url: '/cms/cmsDocument',
    method: 'post',
    data: data
  })
}

// 修改平台相关文档
export function updateCmsDocument(data) {
  return request({
    url: '/cms/cmsDocument',
    method: 'put',
    data: data
  })
}

// 删除平台相关文档
export function delCmsDocument(id) {
  return request({
    url: '/cms/cmsDocument/' + id,
    method: 'delete'
  })
}
